package com.csis.framework.util.jqgrid;

import com.csis.framework.domain.BaseFormBean;
/**
 * parse from {@link BaseFormBean} type
 * @author dailey_dai
 *
 * @param <E>
 * @param <T>
 */
public abstract class AbstractFormBeanResponseParser<E, T extends BaseFormBean>
		implements JqGridResponseParser<T> {

	private JqGridResponseFilter<E> filter;

	public void setFilter(JqGridResponseFilter<E> filter) {
		this.filter = filter;
	}

	public JqGridResponseFilter<E> getFilter() {
		if (filter == null) {
			filter = new DefaultJqGridResponseFilter<E>();
		}
		return filter;
	}

}
